<!doctype html>
<html>
<head>
    <meta charset="UTF-8">
    <title>后台管理</title>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Admin/css/common.css"/>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Admin/css/main.css"/>
    <script type="text/javascript" src="__PUBLIC__/Admin/js/libs/modernizr.min.js"></script>
    <script src="__PUBLIC__/Admin/js/libs/jquery.js"></script>
    <script src="__PUBLIC__/Admin/js/libs/list.js"></script>
    <script src="__PUBLIC__/Admin/js/libs/allDel.js"></script>
</head>
<body>
{:W("Public/topShow")}
<div class="container clearfix">
    {:W("Public/sideShow")}
    <!--/sidebar-->
    <div class="main-wrap">
        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a href="{:U('Index/index')}">首页</a><span class="crumb-step">&gt;</span><span class="crumb-name">下载管理</span></div>
        </div>
        <div class="search-wrap">
            <div class="search-content">
                <form action="__ACTION__" method="get">
                    <table class="search-tab">
                        <tr>
                            <th width="70">文件名称:</th>
                            <td><input class="common-text" placeholder="文件名(可模糊查询)" name="name" value="{$name}" id="" type="text"></td>
                            <td><input class="btn btn-primary btn2" name="sub" value="查询" type="submit"></td>
                        </tr>
                    </table>
                </form>
            </div>
        </div>
        <div class="result-wrap">
            <form action="__CONTROLLER__/delDownload" method="post">
                <div class="result-title">
                    <div class="result-list">
                        <a href="{:U('Download/addDownload')}"><i class="icon-font"></i>新增文件</a>
                        <a id="batchDel" href="__CONTROLLER__/delDownload"><input type="submit" class="delete"><i class="icon-font"></i>批量删除</a>
                    </div>
                </div>
                <div class="result-content">
                    <table class="result-tab" width="100%">
                        <tr>
                            <th class="tc" width="5%"><input class="allChoose" name="" type="checkbox"></th>
                            <th>ID</th>
                            <th>文件名称</th>
                            <th>所属类别</th>
                            <th>创建时间</th>
                            <th>操作</th>
                        </tr>
                        <foreach name="download" item="download">
                        <tr  class="userChoose">
                            <td class="tc"><input name="id[]" value="{$download.id}" type="checkbox"></td>
                            <td>{$download.id}</td>
                            <td>{$download.name}</td>
                            <td>{$download.pid}</td>
                            <td>{$download.time|date="Y-m-d",###}</td>
                            <td>
                                <!-- <a class="link-update" href="__CONTROLLER__/modDownload?id={$download.id}">修改</a> -->
                                <a class="link-del" href="__CONTROLLER__/delDownload?id={$download.id}">删除</a>
                            </td>
                        </tr>
                        </foreach>
                    </table>
                    <div class="list-page">{$page}</div>
                </div>
            </form>
        </div>
    </div>
    <!--/main-->
</div>
</body>
</html>
